// @ts-ignore
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import PatientInfoView from '@/views/PatientInfoView.vue'
import MedicationsView from '@/views/MedicationsView.vue'
import InteractionsView from '@/views/InteractionsView.vue'
import RiskAssessmentView from '@/views/RiskAssessmentView.vue'
import DoctorReviewView from '@/views/DoctorReviewView.vue'
import UsageGuideView from '@/views/UsageGuideView.vue'
import SettingsView from '@/views/SettingsView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/patient-info',
      name: 'patient-info',
      component: PatientInfoView
    },
    {
      path: '/medications',
      name: 'medications',
      component: MedicationsView
    },
    {
      path: '/interactions',
      name: 'interactions',
      component: InteractionsView
    },
    {
      path: '/risk-assessment',
      name: 'risk-assessment',
      component: RiskAssessmentView
    },
    {
      path: '/doctor-review',
      name: 'doctor-review',
      component: DoctorReviewView
    },
    {
      path: '/usage-guide',
      name: 'usage-guide',
      component: UsageGuideView
    },
    {
      path: '/settings',
      name: 'settings',
      component: SettingsView
    }
  ]
})

export default router